import fetch from '@/config/fetch';
/**
 * 获取联系人未领取的激励
 * JASON
 * @param {所处模块} module 
 * @param {所处模块ID} moduleId 
 * @param {联系人ID} uid 
 */
export function findNSeenExcite(module, moduleId, uid) {
    return fetch.get('/excite/findNSeenExcite', {
        params: {
            module, moduleId, uid
        }
    })
}

/**
 * 执行激励
 * JASON
 * @param {激励类型：2.抽奖 3.红包} type 
 * @param {激励记录ID} id 
 */
export function doExcite(type, id) {
    return fetch.post('/excite/doExcite', {
        type, id
    })
}


